

package com.hazelcast.internal.metrics;

/**
 * An interface for consuming metrics.
 */
public interface MetricConsumer {

    /**
     * Called when the Metric contains a {@code long} value.
     *
     * @param descriptor metric descriptor
     * @param value      metric value
     */
    void consumeLong(MetricDescriptor descriptor, long value);

    /**
     * Called when the Metric contains a {@code double} value.
     *
     * @param descriptor metric descriptor
     * @param value      metric value
     */
    void consumeDouble(MetricDescriptor descriptor, double value);

}
